/**
 * @Description:  摄像头管理API
 * @Author:       zhengxu
 * @Date: 2021-11-10 09:59:36
 * @LastEditors:  zhengxu
 * @LastEditTime: 2021-11-10 15:48:19
 */

import { service as request, BasePath } from '../request'

/**
  * 新增摄像头信息
  * @params data 摄像头数据
  * @returns {Object} Promise
  */
export const addCameraInfo = (data) => request({
  url: `${BasePath}/camerainfo`,
  method: 'POST',
  data
})
/**
  * 修改摄像头信息
  * @params data 摄像头数据
  * @returns {Object} Promise
  */
export const editCameraInfo = (data) => request({
  url: `${BasePath}/camerainfo`,
  method: 'PUT',
  data
})
